<?php

Route::group(['middleware' => ['web','auth:admin'], 'prefix' => 'weixin', 'namespace' => 'Modules\Weixin\Http\Controllers'], function()
{
    Route::get('/', 'WeixinController@index');
});

 
//wx_config-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'weixin','namespace'=>"Modules\Weixin\Http\Controllers"], 
function () {
    Route::resource('wx_config', 'WxConfigController')->middleware("permission:admin,resource");
	Route::resource('wx_menu', 'WxMenuController')->middleware("permission:admin,resource");
	Route::get('/wx_menu/push/{wx_menu}','WxMenuController@push')->middleware("permission:admin");;
});